﻿@model Zatify.WebUI.Models.NewPromotionViewModel
@{
    ViewBag.Title = "New Promotion";
    ViewBag.ContentTitle = "New Promotion";
    Layout = "~/Views/Shared/_ContentLayout.cshtml";
}
@section Styles
{
    <style type="text/css">
        .inner_container
        {
            float: none;
        }
        .container
        {
            padding: 0px;
        }
    </style>
}
<div class="business_interface_area">
    @using (Html.BeginForm("NewPromotionStep5End", "BusinessProfile"))
    {
        @Html.HiddenFor(m => m.PromotionId)
        <div style="position: relative;" class="business_profile_categories">
            <div class="campaign_category_selection">
                Review Promotion</div>
            <table cellspacing="0" cellpadding="0" border="0" class="promotion_tabe">
                <tbody>
                    <tr>
                        <td width="200">
                            <span>Categories:</span>
                            <br />
                            <p>
                                $@Model.Promotion.BaseCostTimingFixedCost.ToString("0.00")/flat and $@Model.Promotion.BaseCostTimingRatePerPush.ToString("0.00")/push</p>
                        </td>
                        <td width="490">
                            @foreach (var category in Model.Promotion.Categories)
                            {
                                <div class="container">
                                    @Html.CategoryBreadCrumbsSeparated(category, x => Url.Action("", ""))
                                </div>
                                <br />
                            }
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Proximity Radius</span>
                            <br />
                            <p>
                                $@Model.Promotion.PromixityRadiusFixedCost.ToString("0.00")/flat and $@Model.Promotion.PromixityRadiusRatePerPush.ToString("0.00")/push</p>
                        </td>
                        <td>
                            @Model.SelectedRadiusText<br />
                            @if (Model.Promotion.RegisteredOutsideOfCity)
                            { 
                                <text>Registered Outside Of City</text>
                            }
                            else if (Model.Promotion.RegisteredOutsideOfState)
                            { 
                                <text>Registered Outside Of State</text>
                            }
                            else if (Model.Promotion.RegisteredOutsideOfZip)
                            { 
                                <text>Registered Outside Of ZIP</text>
                            }
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Timing</span>
                            <br />
                            <p>
                                $@Model.Promotion.CostTimingFixedCost.ToString("0.00")/flat and $@Model.Promotion.CostTimingRatePerPush.ToString("0.00")/push</p>
                        </td>
                        <td>
                            @Model.SelectedTimingText
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Budget</span>
                        </td>
                        <td>
                            $@Model.Budget
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Max Pushes</span>
                        </td>
                        <td>
                            @Model.MaxPushes
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Name</span>
                        </td>
                        <td>
                            @Model.Name
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Text</span>
                        </td>
                        <td>
                            @Model.Text
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Single Use Only</span>
                        </td>
                        <td>
                            @(Model.SingleUseOnly?"Yes":"No")
                        </td>
                    </tr>
                    <tr  style="display1:none">
                        <td>
                            <span>Match categories</span>
                        </td>
                        <td>
                            @Model.Match
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="picture_coupon_img">
                <img alt="" src="@Url.Action("GetPromotionPicture", new { id = Model.PromotionId, w = 150, h = 170 })" width="150px" />
            </div>
            <p>
                By pressing the Submit button you are consenting to be bound by Zatify's <a href="@Url.Action("TermsOfUse", "Home")"><strong>
                    terms and conditions.</strong></a></p>
            <p class="campaign_cost_rate">Campaign Cost: $@Model.PromotionCompaignFlatFees.ToString("0.00")/flat and $@Model.PromotionCompaignCost.ToString("0.00")/push</p>
            <input type="submit" value="Submit" class="blue_btn" style="margin-left: 0px;" />
            @if (TempData["PaymentError"] != null)
            {
                <div data-valmsg-summary="true" class="validation-summary-errors">
                    <ul>
                        <li>@TempData["PaymentError"]</li></ul>
                </div>
            }
            @Html.ValidationSummary()
        </div>
    }
    <div class="clearfix">
    </div>
</div>
